import { IPageParams } from '.'

/**
 * 获取角色列表参数
 */
export interface IGetRoleListParams extends IPageParams {
  roleName?: string
}

/**
 * 角色信息
 */
export interface IRoleInfo {
  roleName: number
  // 备注
  remark: string
}

export interface IRoleItem extends IRoleInfo {
  _id: string
  permissionList: {
    checkedKeys: string[]
    halfCheckedKeys: string[]
  }
  updateTime: string
  createTime: string
}

export interface IPermission {
  _id: string
  permissionList: {
    checkedKeys?: string[]
    halfCheckedKeys?: string[]
  }
}
